package com.ict.txmsv2.mapper;

import com.ict.txmsv2.model.Message;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MessageMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Message record);

    int insertSelective(Message record);

    Message selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Message record);

    int updateByPrimaryKey(Message record);

    List<Message> getAllMessageByUserId(Integer id);

    void readMessage(@Param("fromId") Integer fromId, @Param("toId") Integer toId);
}